var wareHouseFunctions = {
	openSaveWindow : function() {
		new WindowPanel(
				{
					id : 'saveWareHouse',
					title : '添加仓库',
					width : 600,
					height : 300,
					closeConfirm : true,
					html : '<iframe name="wareHouseSaveFrame" id="wareHouseSaveFrame" src="'
							+ projectName
							+ '/product/warehouse/toSave.t4m?'
							+ getFlushParam('saveWareHouse')
							+ '" frameborder="0" scrolling="auto"></iframe>',
					tbar : new Toolbar({
						icon : 'image/op.gif',
						items : [ {
							type : 'button',
							text : '保存',
							position : {
								a : '-80px 0px',
								b : '-80px -120px'
							},
							handler : function() {
								submitFrameForm('wareHouseSaveFrame',
										'wareHouseForm');
							}
						} ]
					})
				});
	},
	openUpdateWindow : function(id) {
		new WindowPanel(
				{
					id : 'updateWareHouse',
					title : '修改仓库',
					width : 323,
					height : 145,
					closeConfirm : true,
					html : '<iframe name="wareHouseUpdateFrame" id="wareHouseUpdateFrame" src="'
							+ projectName
							+ '/product/warehouse/toUpdate.t4m?'
							+ getFlushParam('updateWareHouse')
							+ '&object.id='
							+ id
							+ '" frameborder="0" scrolling="auto"></iframe>',
					tbar : new Toolbar({
						icon : 'image/op.gif',
						items : [ {
							type : 'button',
							text : '修改',
							position : {
								a : '-80px 0px',
								b : '-80px -120px'
							},
							handler : function() {
								submitFrameForm('wareHouseUpdateFrame',
										'wareHouseForm');
							}
						} ]
					})
				});
	}
};